package shuishijie.suishijie.model;

import android.text.TextUtils;

/**
 * Created by mindx on 2017/8/29.
 */

public class BrandInfo {
    /**
     * 品牌图片
     **/
    public String brandImgPath;
    /**
     * 品牌id
     **/
    public int brand_id;
//   /**
//     * 品牌名称
//     **/
//    public String brand_name="品牌昵称未定义";


    /**
     * brand_id : 13
     * name : 滴滴果园
     * path : http://fcp.oss-cn-beijing.aliyuncs.com/brand/65cdd5d9-b27a-4a4b-9afe-5c0870274fd3.png
     * sharePerson : 0
     * shopgoods_id : 41
     */

//    public int brand_id;
    private String name;
    public String path;
    public int sharePerson;
    public int shopgoods_id;

    private String brand_name;

    private String shareURL;

    // 业务逻辑变量
    public boolean myShop = false;
    public boolean shopPreview = false;

    public String getName() {
        return TextUtils.isEmpty(name) ? brand_name : name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public void setBrand_name(String brand_name) {
        this.brand_name = brand_name;
    }

    public String getShareURL() {
        return shareURL;
    }

    public void setShareURL(String shareURL) {
        this.shareURL = shareURL;
    }

}
